package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.operator.business.model.OperatorBoutiqueRecommend;




public interface OperatorBoutiqueRecommendRepository extends JpaRepository<OperatorBoutiqueRecommend, String>, JpaSpecificationExecutor<OperatorBoutiqueRecommend> {
	@Query("select u from OperatorBoutiqueRecommend u   where u.cityCode=:cityCode")
	   public Page<OperatorBoutiqueRecommend> findByCityCode(@Param("cityCode") String cityCode,Pageable pageable);
	
	@Query("select u from OperatorBoutiqueRecommend u   where u.cityCode=:cityCode")
	   public List<OperatorBoutiqueRecommend> findByCityCodePc(@Param("cityCode") String cityCode);
}
